package com.dhcc.bpm.business.papc.mapper;

import com.dhcc.bpm.business.papc.entity.FtpInfoConfig;
import com.dhcc.bpm.business.papc.vo.FtpInfoConfigVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * FTP参数表  Mapper 接口
 *
 * @author liuzhao
 * @since 2020-05-16
 */
public interface FtpInfoConfigMapper extends BaseMapper<FtpInfoConfig> {

    /**
     * @param page
     * @param FtpInfoConfig
     * @return java.util.List<com.dhcc.bpm.business.papc.vo.FtpInfoConfigVO>
     * @Description 自定义分页
     * @Author liuzhao
     * @Date 2020/5/21 14:17
     **/
    List<FtpInfoConfigVO> selectFtpInfoConfigPage(IPage page, FtpInfoConfigVO ftpInfo);

    /**
     * @param id
     * @return com.dhcc.bpm.business.papc.entity.FtpInfoConfig
     * @Description 详情
     * @Author liuzhao
     * @Date 2020/5/21 14:18
     **/
    FtpInfoConfig selectFtpInfoConfigById(Long id);

    /**
     * @param FtpInfoConfig
     * @return int
     * @Description 新增
     * @Author liuzhao
     * @Date 2020/5/21 14:19
     **/
    int save(FtpInfoConfig FtpInfoConfig);

    /**
     * @param FtpInfoConfig
     * @return int
     * @Description 更新
     * @Author liuzhao
     * @Date 2020/5/21 14:19
     **/
    int update(FtpInfoConfig FtpInfoConfig);

    /**
     * @param ids
     * @return int
     * @Description 删除
     * @Author liuzhao
     * @Date 2020/5/21 14:19
     **/
    int deleteFtpInfoConfigByIds(String[] ids);

    /**
     * @param FtpInfoConfig
     * @return java.util.List<com.dhcc.bpm.business.papc.entity.FtpInfoConfig>
     * @Description 查询全部信息
     * @Author liuzhao
     * @Date 2020/5/21 14:21
     **/
    @Select("select * from zjyw_ftp_info")
    List<FtpInfoConfig> selectFtpInfoConfigAll(FtpInfoConfig FtpInfoConfig);
}
